package day4;

public class while1 {
    public static void main(String[] tags) {
        int sum = 0;
        int i = 1;
        while (i <= 100) {
            if (i % 2 == 0) {
                sum += i;
            }
            i++;
        }
        System.out.println("结果等于" + sum);
    }
}